﻿package com.findMoneyGame.pages.wrapper {
	import flash.text.TextFormat;

	import com.findMoneyGame.tools.TextFormatProvider;
	import com.findMoneyGame.interfaceComponents.MyButton;
	
	public class BuyMoneyButton extends MyButton {
		private var _money : int;


		public function get money () { return _money; }

		public function set money (value : int) : void {
			_money = value;
			moneyLabel.label.text = _money.toString();
		}
		public function get text () : String { return moneyLabel.label.text; }
		

		public function BuyMoneyButton() {
			//moneyLabel.label.setTextFormat(TextFormatProvider.getFormat(20, 0x4586F5));
		}
	}
}
